import request from '@/utils/request'

//查询过程课题列表
export function selectTopicList(params: any) {
  return request({
    url: '/project/common/query/selectTopicList',
    method: 'get',
    params,
  })
}

//获取不同阶段课题信息分页列表
export function selectTopicPage(params: any) {
  return request({
    url: '/project/common/query/queryTopicPage',
    method: 'get',
    params,
  })
}

//查询课题和项目信息
export function queryTopicAndProject(params: any) {
  return request({
    url: '/project/common/query/queryTopicAndProject',
    method: 'get',
    params,
  })
}

//获得项目信息
export function projectInfoGet(params: any) {
  return request({
    url: '/project/info/get',
    method: 'get',
    params,
  })
}

//更新项目信息
export function projectInfoUpdate(data: any) {
  return request({
    url: '/project/info/update',
    method: 'put',
    data,
  })
}

//所有会议
export function meetingsPage(params: any) {
  return request({
    url: '/project/meetings/all-page',
    method: 'get',
    params,
  })
}

//获得经费类型树
export function budgetTypeTree(params: any) {
  return request({
    url: '/project/budgettype/budget-type/getTree',
    method: 'get',
    params,
  })
}
